<html lang="en" xml:lang="en"><head>
<META http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><META name="description" content="The Geoprocessing widget provides a dynamic user interface to execute a geoprocessing task."><meta name="content-language" content="en"><link href="rsrc/htmlhelp.css" rel="stylesheet" type="text/css"><title>Web AppBuilder for ArcGIS | Help - 
Geoprocessing widget</title>
                <script type="text/javascript" language="JavaScript">
                    var pathL  = self.location.pathname.split ("/");
                    var fname = pathL[pathL.length-1];
                    var i = fname.lastIndexOf (".htm");
                    if (i>=0) {
                    fname = fname.substring (0, i)
                    } else {
                    //??
                    }
                    if (self.location.hash) {
				    		      fname = fname + self.location.hash;
						        }
                    self.location.replace ("../index.html#//" + fname);
                </script>
                </head><!--Publication GUID: [GUID-E7D1C130-8F87-4109-8D61-E73A46083F52]--><!--Topic GUID: [GUID-EB5E85B6-C16C-483F-B1D9-F05C14570336]--><body><div id="content"><div class="header"><h1>
Geoprocessing widget</h1><div id="breadcrumb"></div></div>
<p id="GUID-1269D016-7FC5-46A7-BF3D-877A5C21B823">
The Geoprocessing widget provides a dynamic user interface to execute a geoprocessing task. It provides  the 
ability to configure symbology for input and output layers, as well as overriding default values for parameters.</p>
<div class="section1" id="ESRI_SECTION1_CA8B9C62434F4C9DA62E00B2BF335E15" purpose="section1"><h2>Configure the Geoprocessing widget</h2><p id="GUID-66CC1CE0-828A-4669-B6CB-E6F9662347D5">The Geoprocessing widget can be set to open automatically when apps start. To do so, click the dot on the widget to turn it  dark green.</p><p id="GUID-216CC389-9756-484E-8E6A-222FDA19B3D0">Click the edit widget icon <img purpose="img" placement="inline" alt="Edit widget icon" title="Edit widget icon" src="03w3/GUID-50375771-FF28-476B-971D-4369D62C01D2-web.png">. The configuration window appears.</p><div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="ESRI_STEPS_E7544180E57D427EA73AE40D6893F7D1"><div class="step_title">Steps:</div><ol><li purpose="step" id="ESRI_STEP_6C3A1958FD334B44B9499CE8DCC51391"><span purpose="cmd" id="GUID-CAC9DBC9-6424-41FC-9CC3-BD6596C1BE54"> <span purpose="ph" ishcondition="agol_plat=wab_dev">Click the <span class="uicontrol">Set</span> button, add the geoprocessing service  from ArcGIS portal or ArcGIS Server.</span>  </span><div class="info" purpose="info"><div class="notes" id="GUID-F1E58AE9-809D-48CE-879C-B26CD12AF064"><div class="caution"><img class="note_img" src="rsrc/caution.png" alt="Caution" title="Caution"><span>Caution:</span></div><div class="tipbody"><span purpose="ph" ishcondition="(agol_plat=web) or (agol_plat=wab_dev)">Web AppBuilder  integrated in ArcGIS Online can access  public and secured services from ArcGIS Server. However, secured services do not  support ArcGIS Server with Web Tier authentication, such as  IWA, PKI, or LDAP authentication. Refer to ArcGIS Online <a class="xref" target="_blank" rel="http://server.arcgis.com/en/portal/latest/use/arcgis-server-services.htm" href="http://server.arcgis.com/en/portal/latest/use/arcgis-server-services.htm">ArcGIS Sever web services</a> for more information.</span></div></div><div class="notes" id="GUID-3172FA2F-A6DF-4ABE-88AD-C86F14D66D14"><div class="note"><img class="note_img" src="rsrc/note.png" alt="Note" title="Note"><span>Note:</span></div><div class="tipbody"><span purpose="ph" ishcondition="(agol_plat=web) or (agol_plat=wab_dev)">Geoprocessing widget does not support ArcGIS Online Spatial Analysis Services.</span></div></div><div class="notes" id="GUID-190211CA-CB40-4CCE-9498-DAC1E93AA10C"><div class="note"><img class="note_img" src="rsrc/note.png" alt="Note" title="Note"><span>Note:</span></div><div class="tipbody"> Geoprocessing widget does not support OGC Web Processing Services (WPS). </div></div></div><div class="stepresult" purpose="stepresult"><p id="GUID-DDC6AAAF-8AA8-416A-BAF6-04DE059258E3">  The list of <span class="uicontrol">Input</span> and <span class="uicontrol">Output</span> parameters for the task populates, along with the <span class="uicontrol">Layer order</span> and <span class="uicontrol">Options</span> sections. <div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-4FF144DD-59B9-4987-B7A9-11BF965C968A-web.png" purpose="img" alt="Geoprocessing sections" title="Geoprocessing sections"></td></tr></table></div></p></div></li><li purpose="step" id="ESRI_STEP_31FFA97AFA3944AE9BBFA8FB502F6591"><span purpose="cmd" id="GUID-470D3F03-A874-4EE1-AE53-A08E1455AB24">To configure each <span class="uicontrol">Input</span> parameter, click to make it active. The default values, defined by the published geoprocessing service, populate in the <span class="uicontrol">Label</span>, <span class="uicontrol">Tooltip</span>, and default value areas, such as <span class="uicontrol">Input Feature by</span> and <span class="uicontrol">Symbol</span> in this case. You can input features with  one of the following options:</span><ul purpose="choices" id="ESRI_CHOICES_8353381CEF46489E8289A7FEC33247B0"><li purpose="choice" id="ESRI_CHOICE_181C86F2738C4021A1DC4CC80CD3828B"><span class="uicontrol">Interactively drawing on the map</span></li><li purpose="choice" id="ESRI_CHOICE_C789FDB1327F458A80EA7C37097FAE68"><span class="uicontrol">Use shapefile in local file system</span></li><li purpose="choice" id="ESRI_CHOICE_EA7C6BA57CA8433893C01274FB01C203"><span class="uicontrol">Selecting a layer from the map</span></li><li purpose="choice" id="ESRI_CHOICE_BEA523ACF7574C14965D00C82508AC49"><span class="uicontrol">URL</span></li></ul></li><li purpose="step" id="ESRI_STEP_9636571033674C13A00FC2F2A3006CE7"><span purpose="cmd" id="GUID-0437093F-C91D-45AF-B86B-6A76B1C70C1A">Check <span class="uicontrol">Visible</span> to display the parameter on the widget interface.</span></li><li purpose="step" id="ESRI_STEP_16C1D011579B49B68B50E06BB5A94616"><span purpose="cmd" id="GUID-9B633CAA-1A5F-4FE3-8AAC-E592E6E6CFE3">The content of the default value area varies based on the parameter type. For details, see <a class="xref" rel="03w3/03w30000003t000000.htm" href="03w3/03w30000003t000000.htm">Geoprocessing parameter types</a>.</span></li><li purpose="step" id="ESRI_STEP_0FAEF3EF5D9E4FBEBF38D9244CC4E0A6"><span purpose="cmd" id="GUID-1EFCACC8-2326-48A9-8204-94059D71E430">Click each <span class="uicontrol">Output</span> parameter to make it active and configure it. Configure the <span class="uicontrol">Renderer</span> for each  output parameter, which is GPFeatureRecordSetLayer
in this case.</span><div class="substeps" id="ESRI_SUBSTEPS_6143B609792E4C9C9CA93F18EAC2B558" purpose="substeps"><ol><li purpose="substep" id="ESRI_SUBSTEP_9577D6A372354402BEB7F239C16674BA"><span purpose="cmd" id="GUID-53A929A9-2933-4400-94DF-E93C8FCAC7D3">In the <span class="uicontrol">Use</span> section, choose <span class="uicontrol">Unique Symbols</span> from the drop-down list.</span></li><li purpose="substep" id="ESRI_SUBSTEP_584EF69845B14DE982E07B1D42E626B5"><span purpose="cmd" id="GUID-2EB30FF5-BBB4-4C39-BB5A-E81658CCDF6E">In the <span class="uicontrol">To Show</span> section, choose <span class="uicontrol">ToBreak</span> from the drop-down list.</span></li><li purpose="substep" id="ESRI_SUBSTEP_67B6F4E44C0E438CB679C8F6060E7807"><span purpose="cmd" id="GUID-846C4FF8-A0E4-4592-B0C3-1E3F1A52DEE9">Choose a color pattern.</span></li><li purpose="substep" id="ESRI_SUBSTEP_96C765769C094BF687F29FE24B14E530"><span purpose="cmd" id="GUID-18FC4AEC-A7D1-45C9-AA81-AE79EB3E74CB">Click + to add different values  that you want to show  in the <span class="uicontrol">Add Value</span> box.</span></li><li purpose="substep" id="ESRI_SUBSTEP_D060643653D24982A504C4D5E63A2A9E"><span purpose="cmd" id="GUID-CF60844C-7642-4615-AEAD-2383B93378FD">For other values not entered in the above step, click <span class="uicontrol">Set Default Symbol</span> and choose a symbol from the preview of the <span class="uicontrol">Default Symbol</span>.</span></li></ol></div></li><div class="stepinfo" purpose="stepinfo"><div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-C2CB017C-B6AF-4540-8F2E-9D28093E688F-web.png" purpose="img" alt="Geoprocessing output parameter renderer configuration" title="Geoprocessing output parameter renderer configuration"></td></tr></table></div></div><li purpose="step" id="ESRI_STEP_4CD2CB7227584B0DB5998E9CE14F63EA"><span purpose="cmd" id="GUID-FE01F654-4F1A-4D4B-8891-92917C874323">Select the fields to display on the <span class="uicontrol">Popup</span> window for output features. Check the <span class="uicontrol">Enable popup</span> check box to enable the popup. Click the <span class="uicontrol">Add</span> drop-down arrow to select fields for the popup title. Check the check boxes in the <span class="uicontrol">Visible</span> column to display the field in the popup when a feature is clicked. Reorder fields by clicking the up and down arrows next to the field.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-5A3C3126-AF12-46D8-910D-5A362ED22763-web.png" purpose="img" alt="Geoprocessing output parameter popup configuration" title="Geoprocessing output parameter popup configuration"></td></tr></table></div></span></li><li purpose="step" id="ESRI_STEP_CAFD6EDC3C0D4AF4A4AE4DBEADA56D5B"><span purpose="cmd" id="GUID-C4A00DF7-CC7A-4D6E-ABA7-22D3C33A92D8">If the output parameter is GPRecordSet,  you can configure the fields to display in the output table.</span></li><li purpose="step" id="ESRI_STEP_D155739E7C0E426B984FD46D3F81B372"><span purpose="cmd" id="GUID-134ED909-F9B1-4717-A73C-42FA29E1C393">Control the order of the layers (input, output) by clicking the up and down arrows in the <span class="uicontrol">Layer order</span> section.</span></li><li purpose="step" id="ESRI_STEP_AA73A61402CF49AA8995DDDC350D488A"><span purpose="cmd" id="GUID-0E848CD7-C638-4DE8-B85B-022378DA6990">In the <span class="uicontrol">Options</span> section,  check <span class="uicontrol">Add result as operational layer</span> to add the output layer to the map's operational layers. Check <span class="uicontrol">Allow to export results</span> to export the result to CSV, Feature Collection or GeoJSON.  Additionally If your geoprocessing service is published with the <b>View result with a map service</b> parameter, <span class="uicontrol">Use the drawing options of result map service</span> option is enabled. You can choose to draw the result with the map service or not. If you do, the <span class="uicontrol">Renderer</span> capability on the <span class="uicontrol">Output</span> in step 5 is  disabled.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-230DE72E-DD82-46CF-B3C4-A90B5512115D-web.png" purpose="img" alt="Options" title="Options"></td></tr></table></div> if the <span class="uicontrol">Output may have different schema, use dynamic schema instead of predefined</span> option is checked,  the schema of the output feature set can't be predicted, including the field definition and geometry type. As a result, the renderer is ignored and the feature set is  added as a graphics Layer using the default symbol.</span></li><li purpose="step" id="ESRI_STEP_D78A89BDF74047D79EDD14502A8C86AB"><span purpose="cmd" id="GUID-A8D69681-71D7-4C0F-9392-1F55C1FDE1FE">Click <span class="uicontrol">OK</span> to close the dialog box.</span></li></ol></div></div></div>
<div class="section1" id="ESRI_SECTION1_F13A2550845D46CF812375675132DAD6" purpose="section1"><h2>Use the Geoprocessing widget</h2><div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="ESRI_STEPS_F5387AA4261E40B9A29E0C456617238D"><div class="step_title">Steps:</div><ol><li purpose="step" id="ESRI_STEP_D9BADE308107472B861257FEB747A917"><span purpose="cmd" id="GUID-275C50A2-5D93-43FE-ADF9-532774BB1F57">Click the widget icon to open the Geoprocessing widget.</span></li><li purpose="step" id="ESRI_STEP_DD51445C7A814FE3AA9E6CA441D0EF2E"><span purpose="cmd" id="GUID-519E524A-DCE1-4279-B56E-28939BB9F3D3">Enter a value for each of the input parameters. In this example, the drive time analysis geoprocessing task from ArcGIS Online is consumed. The task requires one or more starting locations and a set of space-delimited drive times used to calculate possible distances over time.</span></li><li purpose="step" id="ESRI_STEP_557B6CDB730446AEBA7D6D1C3F31F047"><span purpose="cmd" id="GUID-A5036828-A6CA-4841-AFC0-30CE31456454">Most geoprocessing tasks require input using the map to draw geometries to provide as input for the geoprocessing task. Click the symbol icon to activate the drawing tool and draw a feature on the map. To remove all features and start again, click <span class="uicontrol">Clear</span>.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-2158783E-B3B9-4F53-BC53-FACE1B49E560-web.png" purpose="img" alt="Geoprocessing geometry input" title="Geoprocessing geometry input"></td></tr></table></div></span></li><li purpose="step" id="ESRI_STEP_485366F8DF464A44AA61C6D59898E433"><span purpose="cmd" id="GUID-6EE04690-FB0C-4D52-8FC8-2F6C9B03F65E">Once all required input parameters (annotated by an asterisk next to the name) have values, click <span class="uicontrol">Execute</span> to submit the task. The <span class="uicontrol">Output</span> tab is selected and displays a progress indicator until execution completes.</span></li><li purpose="step" id="ESRI_STEP_EAE3C764D8454E02B7DFED5F0B9E1F81"><span purpose="cmd" id="GUID-B98B40E0-3D35-4150-8A3F-47948B70F3D5">Upon completion, the geoprocessing results display on the map. Click <span class="uicontrol"> Output</span> to view their attributes.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-0A580496-24B2-4230-A810-D67A7CAD88C6-web.png" purpose="img" alt="Geoprocessing output with attributes visible" title="Geoprocessing output with attributes visible"></td></tr></table></div></span></li><li purpose="step" id="ESRI_STEP_DDD42A871FCA4E849690D6B23B489922"><span purpose="cmd" id="GUID-2310804F-9042-41DC-BC03-8C0F8F086F66">Click <span class="uicontrol"> Output</span> to view their attributes.</span></li><li purpose="step" id="ESRI_STEP_10BF77AD5D0846578594CFBFF185CECF"><span purpose="cmd" id="GUID-1261F8E1-AACB-45C0-B66A-597DDA9748DD">  Click <img purpose="img" placement="inline" alt="Export results" title="Export results" src="03w3/GUID-D96E9F74-BC5D-4CC6-9C47-61DC882488DE-web.png"> to export the results to one of the following formats when the <span class="uicontrol">Allow to export results</span> box is checked.</span><ul purpose="choices" id="ESRI_CHOICES_844508B893E14361B36332DAAC704F6D"><li purpose="choice" id="ESRI_CHOICE_F77FBD18058E480BAAFCCA1C5F2DE680">Export to CSV file</li><li purpose="choice" id="ESRI_CHOICE_87BAA337E7294A9489C5F971313EDBFB">Export to Feature Collection</li><li purpose="choice" id="ESRI_CHOICE_5C27ADAA812740EFBE498FD0DA7A3A95">Export to GeoJSON</li></ul></li><li purpose="step" id="ESRI_STEP_C24226B5441048C1B27993A0FA7E6CD9"><span purpose="cmd" id="GUID-888038E4-07F1-46BF-B00F-2A4C9CF19819">Click <span class="uicontrol">Clear</span> on the <span class="uicontrol">Input</span> tab to clear the location or  <span class="uicontrol">X</span> on the <span class="uicontrol">Output</span> tab to clear the geoprocessing results from the map.</span></li></ol></div></div></div>
<div class="footer"> Copyright © 1995-2016 Esri. All rights reserved. </div></div></body></html>